<?php
/**
 * Created by PhpStorm.
 * User: GadflyBSD
 * Date: 14-7-16
 * Time: 上午9:52
 */

namespace Common\Controller;
use Think\Controller;

class PublicController extends Controller {
	protected function output($param = null){
		$param = (is_null($param))?CONTROLLER_NAME.":".ACTION_NAME:$param;
		if(IS_AJAX){
			layout(false);
			echo $this->fetch($param);
		}else{
			$this->display($param);
		}
	}
} 